package com.jucat.exceptions;

import com.jucat.enums.CodeEnum;
import lombok.Getter;

/**
 * tiger项目的顶级异常类
 * @author manem
 */
@Getter
public class TigerException extends RuntimeException{
    private final Integer code;

    public TigerException(CodeEnum code) {
        this(code.getMsg(), code.getCode());
    }
    private TigerException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
